﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace Reader.Domain
{
    public class BookChapter
    {
     
      
        //private string uriTextConetent;
        ///// <summary>
        ///// ChapterType.UriText 时的内容
        ///// </summary>
        //private string UriTextConetent
        //{
        //    get
        //    { return uriTextConetent; }
        //    //set { uriTextConetent = value; }
        //}
        private string bookPageUri;
        public string BookPageUri
        {
            get;
            set;
        }
       
        public string BookContentUri
        {
            get;
            set;
        }
        //private ChapterType chapterType=ChapterType.Text;

        //public ChapterType ChapterType
        //{
        //    get { return chapterType; }
        //    set { chapterType = value; }
        //}
        private string textContent;

        public string TextContent
        {
            get { return textContent; }
            set { textContent = value; }
        }
        public List<string> Paragraphs
        {
            get {
                string[] stringSeparators = new string[] { "<p>" };
                return TextContent.Split(stringSeparators,StringSplitOptions.RemoveEmptyEntries).ToList();
            
            }
        }
        private List<string> imageContent;

        public List<string> ImageContent
        {
            get { return imageContent; }
            set { imageContent = value; }
        }
        private bool hasNext;

        public bool HasNext
        {
            get { return hasNext; }
            set { hasNext = value; }
        }
        public bool NextIsVip
        { get; set; }
        private bool hasPrevious;
       
        

        public bool HasPrevious
        {
          get { return hasPrevious; }
          set { hasPrevious = value; }
        }
     
        public string NextUri
        {
            get;
            set;
        }
      
        public string PreviousUri
        {
            get;
            set;
        }


        public string Title
        {
            get;
            set;
        }
        private string updateTime;

        public string UpdateTime
        {
            get { return updateTime; }
            set { updateTime = value; }
        }
       
      
    }
}
